<template>
	<view class="login">
		<view class="logo">
			<image src="@/static/logo.png" mode="aspectFill"></image>
		</view>
		<view class="form">
			<view class="item">
				<u-input v-model="userName" :custom-style="inputStyle" type="text" :border="false"
					placeholder="请输入您的账号" />
			</view>
			<view class="item">
				<u-input v-model="password" :custom-style="inputStyle" type="password" :border="false"
					placeholder="请输入您的密码" />
			</view>
		</view>
		<view class="agreement">
			<view class="left" @click="checked = !checked">
				<text v-show="checked == false" class="iconfont icon-check2_false"></text>
				<text v-show="checked == true" class="iconfont icon-check2_true"></text>
				<text>同意</text>
				<text class="green">《服务协议》</text>
				<text>和</text>
				<text class="green">《隐私条款》</text>
			</view>
			<view class="right">
				<text>忘记密码</text>
			</view>
		</view>
		<view class="loginBtn">
			<text>登 录</text>
		</view>
		<view class="otherLogin">
			<view class="left">
				<text>短信验证码登录</text>
			</view>
			<view class="right">
				<text>注册</text>
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				inputStyle: {
					fontSize: '32rpx',
					color: '#FFFFFF',
				},
				userName: '',
				password: '',
				checked: false
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.login {
		min-height: calc(100vh - 44px);
		background-color: #000000;
		padding: 0 50rpx;

		.logo {
			padding: 86rpx 0;
			text-align: center;

			image {
				width: 210rpx;
				height: 210rpx;
			}
		}

		.form {
			margin-bottom: 30rpx;

			.item {
				border-bottom: 2rpx solid rgba(239, 239, 239, .4);
				margin-bottom: 82rpx;

				&:last-child {
					margin-bottom: 0;
				}
			}
		}

		.agreement {
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin-bottom: 84rpx;

			.left {
				text {
					font-size: 25rpx;
					font-weight: 400;
					color: #D1D1D1;

					&.green {
						color: #45E744;
					}

					&.iconfont {
						font-size: 28rpx;
						color: #a2a2a2;
						margin-right: 16rpx;

						&.icon-check2_true {
							color: #45E744;
							border-radius: 50%;
							background-color: #FFFFFF;
						}
					}
				}
			}

			.right {
				text {
					font-size: 25rpx;
					font-weight: 400;
					color: #00BACF;
				}
			}
		}

		.loginBtn {
			margin-bottom: 70rpx;

			text {
				display: block;
				width: 100%;
				height: 90rpx;
				text-align: center;
				line-height: 90rpx;
				background: linear-gradient(135deg, #00BACF 0%, #14CF4C 100%);
				font-size: 32rpx;
				font-weight: 500;
				color: #FFFFFF;
				text-shadow: 0 2rpx 4rpx rgba(0, 97, 89, 0.16);
				border-radius: 20rpx;
			}
		}

		.otherLogin {
			display: flex;
			align-items: center;
			justify-content: space-between;

			.left {
				text {
					font-size: 25rpx;
					font-weight: 400;
					color: #999999;
				}
			}

			.right {
				text {
					font-size: 26rpx;
					font-weight: 500;
					color: #FFFFFF;
				}
			}
		}
	}
</style>
